#{extends 'simpleTemplate.html' /}
<title>&{'Wiki_show_wiki_page_header'}</title>

<script>

    //delete page and return to the wiki list
    function deletePage() {
    $.get("@{wiki.WikiController.deletePage}", {"id": "${page.id}"}, function() {
    document.location.href = "/wiki";
    });
    }
</script>


<div class="content">
    <div class="content-header">
        <h3>${page.name}</h3>
        <div>${authorName}</div>
    </div>

    <div class="content-body">

        <pre> <div class="tb-task-content">#{verbatim} ${page.summaryHtml()}#{/verbatim}
        </div>
       </pre>

       <pre> <div class="tb-task-content">#{verbatim} ${page.contentHtml()}#{/verbatim}
        </div>
       </pre>
        <pre> <div class="tb-task-content">#{verbatim} ${page.getTagsString()}#{/verbatim}
        </div>
       </pre>
        <a class="btn btn-primary" href="/currentWiki?name=${page.name}">&{'Wiki_edit'}</a>
        <input type="button" value="&{'Wiki_delete'}" class="btn btn-primary" onclick="deletePage()" id="deletebutton">

    </div>
</div>